﻿@model MvcApplication4.Models.Category

@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>

<fieldset  class="display-window_category">
    <legend>Category</legend>
    <div class="display-item" style="margin-top: 10px">
        <div class="display-label">
             @Html.DisplayNameFor(model => model.Title)
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.Title)
        </div>
    </div>

    <div class="display-item">
        <div class="display-label">
             @Html.DisplayNameFor(model => model.User.UserName)
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.User.UserName)
        </div>
    </div>

    <div class="display-item">
        <div class="display-label">
             @Html.DisplayNameFor(model => model.SubCategory)
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.SubCategory)
        </div>
    </div>

    <div class="display-item">
        <div class="display-label">
             @Html.DisplayNameFor(model => model.Time)
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.Time)
        </div>
    </div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.CategoryId }) |
    @Html.ActionLink("Back to List", "Index")
</p>

<section id="Category_Thread">
                    @{Html.RenderAction("ContainedThreads", "Category", new { id = Model.CategoryId});}
</section>